package com.fc.service;

import java.util.List;

import com.fc.entities.Food;
import com.fc.entities.FoodGroup;
import com.fc.entities.User;

/**
 * 
 * @author Ács Ádám
 * 
 */
public interface FoodService extends BaseService<Food> {
	Food findByName(String name);

	List<String> findAllNames();

	List<Food> findAllByGroup(FoodGroup group);

	List<Food> findAllByUser(User user);

	List<Food> findAllByGroupAndUser(FoodGroup group, User user);

	List<Food> findAllDefault();

	List<Food> findAllDefaultByGroup(FoodGroup group);

	Food findById(long id);

	void delete(Food food);
	
	Food save(Food food);
	
	Food create(Food food);
}
